import axios from "@/api/axios";

// 登录
export const login = (data) => {
    return axios.post('/api/login', data)
}

// 退出登录
export const logout = () => {
    return axios.post('/api/logout')
}

// 获取用户信息
export const getUserInfo = () => {
    return axios.get('/api/user/info')
}

// 更新用户信息
export const updateUserInfo = (data) => {
    return axios.put('/api/user/info', data)
}